<?php
if (!defined('TIMESTARTPAGE')) 
{
    define('TIMESTARTPAGE', microtime(true));
}
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) 
{
    @ob_start("ob_gzhandler");
}
//load config
@include "../includes/config/config.php";
//create object db
include "../includes/class_mysql.php";
include "../includes/gpc_function.php";
include "includes/functions.php" ;
include "language/language.php";
include "includes/global.php";
@require "includes/permission.php";

if ($act == "logout")
{
    Logout();
}
exit;
$sql_select = "select iId,cPriceDayArr from tblsettour ";
$rs         = $dbsql->query($sql_select);
while($result= $dbsql->fetch_array($rs))
{
    $dt=$result['cPriceDayArr'];
    $dt=str_replace("\n","",$dt);
    $dt= str_replace('<span style="font-size: xx-small;">','',$dt);
    $dt=str_replace('</em></span>','</em>',$dt);
    echo $dt;
    $dt=mysql_escape_string($dt);
    $sql_update = "update tblsettour set cPriceDayArr='$dt' where iId=".$result['iId'];
    $dbsql->query($sql_update);
}
?>